Take into account Erlang may pass line numbers as none