Return undefined if layer not found.

layerAsTileMap() used to throw an error if no layer with the given name
was found.  This caused the game to break in all cases where this was
true.  Returning undefined instead allows application-level logic to
handle failures gracefully.

Signed-off-by: suicidepills <atom.mac@gmail.com>