Fixed #4123 -- Changed the firstof template tag to correctly handle a literal