Fix for find user which start with numeric character

Hello.
Thank you for the  service! I am looking forward to future. 


When `User. find_by_id_or_username ` called by start with numeric character, It seems that it searches by user id. 

http://www.photographer.io/en/u/03w
http://www.photographer.io/en/u/1306