Added checks in case empty strings are passed, fixes #20

initQuotes, amp and ord return if the text passed to them is a falsy
value - which makes the module crash if an empty string is passed.

An extra check fixes the problem.