Added error checking for undefined continuities

#79